var curUrl = window.location.href;
$(".foot-item").each(function () {
    var url = $(this).attr('href');
    if (curUrl.indexOf(url) != -1) {
        $(this).addClass("active");
        return false;
    }
});